import type { Media } from '@/api/modules/lcd/lcd-device';
import type { Rule } from 'ant-design-vue/es/form';

const formObj: Media = {
  mediaId: '',
  mac: '',
  status: '',
  location: '',
  uri: null,
  refreshTimes: null,
  lastUpdateTime: null,
  lastOnlineTime: null,
  templateId: null,
  resolutionId: '',
  deptId: '',
  fwVersion: '',
  storeName: null,
  goodsName: null,
  share: null,
  barcode: null,
  templateName: null,
  resolutionDesc: null,
  resolutionWidth: 0,
  resolutionHeight: 0,
  nlast: '',
  label: [],
  goodsList: [],
  display: '0',
  conn: '0',
};
export const form = ref({
  ...formObj,
});

export const formRef = ref();

export const resetForm = () => {
  form.value = {
    ...formObj,
  };
};
export const formRules: Record<string, Rule[]> = {};
